home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / misc / libx11inc.lha / X11 / Xm / CommandP.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-13  |  2.6 KB  |  102 lines

  1. /* 
  2.  * (c) Copyright 1989, 1990, 1991, 1992 OPEN SOFTWARE FOUNDATION, INC.
  3.  * ALL RIGHTS RESERVED
  4. */ 
  5. /*   $RCSfile: CommandP.h,v $ $Revision: 1.11 $ $Date: 92/05/14 12:48:48 $ */
  6. /*
  7. *  (c) Copyright 1989, DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS. */
  8. /*
  9. *  (c) Copyright 1987, 1988, 1989, 1990, 1991, 1992 HEWLETT-PACKARD COMPANY */
  10. #ifndef _XmCommandP_h
  11. #define _XmCommandP_h
  12.  
  13. #include <Xm/SelectioBP.h>
  14. #include <Xm/Command.h>
  15.  
  16. #ifdef __cplusplus
  17. extern "C" {
  18. #endif
  19.  
  20. /*  New fields for the Command widget class record  */
  21.  
  22. typedef struct
  23. {
  24.     XtPointer           extension;      /* Pointer to extension record */
  25. } XmCommandClassPart;
  26.  
  27.  
  28. /* Full class record declaration */
  29.  
  30. typedef struct _XmCommandClassRec
  31. {
  32.    CoreClassPart            core_class;
  33.    CompositeClassPart       composite_class;
  34.    ConstraintClassPart      constraint_class;
  35.    XmManagerClassPart       manager_class;
  36.    XmBulletinBoardClassPart bulletin_board_class;
  37.    XmSelectionBoxClassPart  selection_box_class;
  38.    XmCommandClassPart       command_class;
  39. } XmCommandClassRec;
  40.  
  41. externalref XmCommandClassRec xmCommandClassRec;
  42.  
  43. /* New fields for the Command widget record */
  44.  
  45. typedef struct
  46. {
  47.     XtCallbackList       callback;
  48.     XtCallbackList       value_changed_callback;
  49.     int                  history_max_items;
  50.     Boolean              error;        /* error has been made visible in list */
  51. } XmCommandPart;
  52.  
  53.  
  54. /****************************************************************
  55.  *
  56.  * Full instance record declaration
  57.  *
  58.  ****************************************************************/
  59.  
  60. typedef struct _XmCommandRec
  61. {
  62.     CorePart            core;
  63.     CompositePart       composite;
  64.     ConstraintPart      constraint;
  65.     XmManagerPart       manager;
  66.     XmBulletinBoardPart bulletin_board;
  67.     XmSelectionBoxPart  selection_box;
  68.     XmCommandPart       command;
  69. } XmCommandRec;
  70.  
  71.  
  72.  
  73. /********    Private Function Declarations    ********/
  74. #ifdef _NO_PROTO
  75.  
  76. extern void _XmCommandReturn() ;
  77. extern void _XmCommandUpOrDown() ;
  78.  
  79. #else
  80.  
  81. extern void _XmCommandReturn( 
  82.                         Widget wid,
  83.                         XEvent *event,
  84.                         String *params,
  85.                         Cardinal *numParams) ;
  86. extern void _XmCommandUpOrDown( 
  87.                         Widget wid,
  88.                         XEvent *event,
  89.                         String *argv,
  90.                         Cardinal *argc) ;
  91.  
  92. #endif /* _NO_PROTO */
  93. /********    End Private Function Declarations    ********/
  94.  
  95.  
  96. #ifdef __cplusplus
  97. }  /* Close scope of 'extern "C"' declaration which encloses file. */
  98. #endif
  99.  
  100. #endif /* _XmCommandP_h */
  101. /* DON'T ADD ANYTHING AFTER THIS #endif */
  102.